package view;

import javax.swing.JPanel;

/**
 * Permet de transmettre les instances de tous les panels (pratique pour les Controlers)
 * 
 *
 */
public class Global {
	
	private GroupsPanel groupPanel;
	private ContactsPanel contactPanel;
	private FormPanel formPanel;
	
	public Global(){
		
		this.groupPanel = null;
		this.contactPanel = null;
		this.formPanel=null;
	}

	//Getter&Setter GroupPanel
	public GroupsPanel getGroupPanel(){		
		return groupPanel;
	}
	public void setGroupPanel(GroupsPanel grpPanel){	
		this.groupPanel = grpPanel;
	}
	//Getter&Setter ContactPanel
	public ContactsPanel getContactsPanel(){
		return contactPanel;
	}
	public void setContactPanel(ContactsPanel cntPanel){	
		this.contactPanel = cntPanel;
	}
	//Getter&Setter FormPanel
	public FormPanel getFormPanel(){
		return formPanel;
	}
	public void setFormPanel(FormPanel frmPanel){	
		this.formPanel = frmPanel;
	}
}
